﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.WindowsAzure.StorageClient;

namespace FeedReader.Shared.Data
{
    public class PostsDataModel :TableServiceEntity
    {
        public PostsDataModel(string partitionKey, string rowKey)
            : base(partitionKey, rowKey)
        {
        }

        public PostsDataModel(): this(Guid.NewGuid().ToString(), String.Empty)
        {
        }
        /// <summary>
        ///  The Post ID
        /// </summary>
        public string PostID { get; set; }
        /// <summary>
        ///  The Blog ID
        /// </summary>
        public string BlogID { get; set; }
        /// <summary>
        ///  The Blob holding the content
        /// </summary>
        public string TheBlobID { get; set; }
        /// <summary>
        ///  The Title of the post
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        ///  The URL of the post
        /// </summary>
        public string URL { get; set; }
        /// <summary>
        ///  The Publish date of the post
        /// </summary>
        public DateTime PublishDate{get;set;}
    }
}
